export type baseStoreroomConfigModel = {
  id: number //主键ID
  mainPerson: string //责任人
  notes: string //库房位置描述
  parentId: number //父节点ID
  parentPositionName: string //父节点库房名称
  positionLevel: number //层级
  positionName: string //库房位置名称
  sortIndex: number //排序号
  totalCount: number //总行数
}

const api: ApiConfig = {
  list: {
    url: '/collection/baseStoreroomConfig/list',
    method: 'GET'
  },
  delete: {
    url: '/collection/baseStoreroomConfig/delete',
    method: 'POST'
  },
  info: {
    method: 'GET',
    url: '/collection/baseStoreroomConfig/info/:id'
  },
  save: {
    url: '/collection/baseStoreroomConfig/save',
    method: 'POST'
  },
  update: {
    url: '/collection/baseStoreroomConfig/update',
    method: 'POST'
  },
  //字典表
  listByParentCode: {
    method: 'GET',
    url: '/sys/dic/listByParentCode'
  },
  listByParentId: {
    url: '/collection/baseStoreroomConfig/listByParentId', //库房配置表·列表·根据父ID查询列表
    method: 'GET'
  },
  listOptionsByParentId: {
    //库房配置表·下拉框·层级下拉框
    url: '/collection/baseStoreroomConfig/listOptionsByParentId',
    method: 'GET'
  }
}

export default api
